package com.gitee.lw114514.tliasweb.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmpQueryParam {
//    @RequestParam(defaultValue = "1") Integer page,
//    @RequestParam(defaultValue = "10") Integer pageSize,
//    String name,
//    Integer gender,
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    LocalDate begin,
//    @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate end
    private Integer page = 1;
    private Integer pageSize = 10;
    private String name;
    private Integer gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;
}
